home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / shez63.arc / AUTOSHEZ.BAT next >
DOS Batch File  |  1991-07-18  |  3KB  |  43 lines

  1. echo off
  2. REM ┌──────────────────────────────────────────────────────────────────────────┐
  3. REM │  This is a bat file to automatically startup SHEZ and tag all files,     │
  4. REM │  then run a virus check, and strip the comment records out of all tagged │
  5. REM │  .ZIP files.  After all operations are performed control will return to  │
  6. REM │  this batch file.                                                        │
  7. REM └──────────────────────────────────────────────────────────────────────────┘
  8. REM
  9. REM ┌──────────────────────────────────────────────────────────────────────────┐
  10. REM │  The set command tells SHEZ the name of the LOG file to use.             │
  11. REM └──────────────────────────────────────────────────────────────────────────┘
  12.      set shezlog=d:\z.log
  13. REM ┌──────────────────────────────────────────────────────────────────────────┐
  14. REM │  The stuff command stuffs keystrokes into the keyboard buffer.           │
  15. REM │  In this case CTRL-T  CTRL-Z  ESC  and ALT-Q are stuffed in.             │
  16. REM │                                                                          │
  17. REM │  If you are using 4DOS or NDOS with KEYSTACK loaded you may replace the  │
  18. REM │  STUFF command with the KEYSTACK command as follows:                     │
  19. REM │                                                                          │
  20. REM │  KEYSTACK 20 26 27 @16                                                   │
  21. REM └──────────────────────────────────────────────────────────────────────────┘
  22.      stuff ^T ^Z ESC ~Q
  23. REM ┌──────────────────────────────────────────────────────────────────────────┐
  24. REM │  Now startup SHEZ and tell it to look for all .ZIP files on the D: drive │
  25. REM │  in the \DOWN\ directory.                                                │
  26. REM │                                                                          │
  27. REM │  The sutffed keystrokes will tell SHEZ:                                  │
  28. REM │  1) CTRL-T  =  Tag all found files.                                      │
  29. REM │  2) CTRL-Z  =  Virus check all tagged files, and strip comment records   │
  30. REM │                out of any found .ZIP files.                              │
  31. REM │  3) ESC     =  ESC out of the automatic browse of the log file.          │
  32. REM │  4) ALT-Q   =  Exit SHEZ.                                                │
  33. REM └──────────────────────────────────────────────────────────────────────────┘
  34.      shez d:\down\l*.zip
  35. REM ┌──────────────────────────────────────────────────────────────────────────┐
  36. REM │  Now view the log file.                                                  │
  37. REM └──────────────────────────────────────────────────────────────────────────┘
  38.      list d:\z.log
  39. REM ┌──────────────────────────────────────────────────────────────────────────┐
  40. REM │  Clear the environment variable SHEZLOG.                                 │
  41. REM └──────────────────────────────────────────────────────────────────────────┘
  42.      set shezlog=
  43.